<% 
if (this.reports.length > 0 ) {
	for(var j = 0; j < this.reports.length ; j++) {
		if ( typeof( this.reports[j] ) == 'string' )
		{%>
			<li class="report-descriptor-group">
				<span class="report-descriptor-group-head"><%=this.reports[j] %></span>
				<ul class="report-descriptor-group-content">
					<% var groupItems = this.groups[this.reports[j]];
						for(var k = 0; k < groupItems.length ; k++) {%>		
							<li class="<%= groupItems[k].identity()%> " >
								<%= view('//bugstat/views/report_descriptor/show.ejs',groupItems[k])%>
							</li>				
					<%}%>
				</ul>
			</li>
		<%}
		else
		{%>
			<li>' >
				<%= view('//bugstat/views/report_descriptor/show.ejs',this.reports[j]) %>
			</li>			
		<%}
	}
} 
else { %>
	<li id='nothing_found'>
		No reports found
	</li>
<%}%>

<script type="text/javascript">
  $( function() {
	$(".report-descriptor-group-content").collapsorz({
	    showText: "More",
	    hideText: "Less",
	    linkLocation: "after",
		minimum: 3,
	    wrapLink: "<div class='linkWrapper local_link'></div>"
	  });
	});
</script>